/*
 * @Date: 2023-04-11 23:34:36
 * @LastEditors: jacky02
 * @LastEditTime: 2023-05-02 23:42:15
 */
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import { HashRouter} from 'react-router-dom'


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    //使用hashrouter，tomcat不用history
    //history是真实请求的，tomcat并没有做ssr
    //hash标定index.html
    //前端路由使用HashRouter ,服务路由使用BrowserRouter
  <HashRouter>
    <App />
  </HashRouter>
);

